package com.yonyou.iuap.corp.demo.yonbip.payment;

import com.yonyou.iuap.corp.demo.yonbip.OpenBaseTest;

/**
 * @author nishch
 * @version 1.0
 * @date 2021/2/23
 * @des  付款
 */
public class PaymentTestOpen extends OpenBaseTest {
    @Override
    public void list() throws Exception {

    }

    @Override
    public void detail() throws Exception {

    }


//    {
//        "data": [
//        {
//            "vouchdate": "2021-02-23 00:00:00",
//                "accentity_code": "1002",
//                "org_code": "1002",
//                "dept_code": "10001",
//                "supplier_code": "00020001",
//                "exchangeRateType": "zjhrilpq",
//                "exchangeRateType_code": "01",
//                "oriSum": "1",
//                "natSum": "1",
//                "balance": "1",
//                "exchRate": "1",
//                "tradetype": "1153091135960120",
//                "currency": "G001ZM0000DEFAULTCURRENCT00000000001",
//                "currency_name": "人民币",
//                "currency_priceDigit": "6",
//                "currency_moneyDigit": "2",
//                "natCurrency": "G001ZM0000DEFAULTCURRENCT00000000001",
//                "natCurrency_name": "人民币",
//                "natCurrency_priceDigit": "6",
//                "natCurrency_moneyDigit": "2",
//                "_status": "Insert",
//                "PayBillb": [
//            {
//                "quickType": "254307",
//                    "oriSum": "1",
//                    "natSum": "1",
//                    "_status": "Insert"
//            }
//            ]
//        }
//    ]
//    }

    @Override
    public void save() throws Exception {
        String url = "https://api.diwork.com/yonbip/fi/payment/save";
        String reqParams =  "{'data':[{'vouchdate':'2021-02-23 00:00:00','accentity_code':'1002','org_code':'1002','dept_code':'10001','supplier_code':'00020001','exchangeRateType':'zjhrilpq','exchangeRateType_code':'01','oriSum':'1','natSum':'1','balance':'1','exchRate':'1','tradetype':'1153091135960120','currency':'G001ZM0000DEFAULTCURRENCT00000000001','currency_name':'人民币','currency_priceDigit':'6','currency_moneyDigit':'2','natCurrency':'G001ZM0000DEFAULTCURRENCT00000000001','natCurrency_name':'人民币','natCurrency_priceDigit':'6','natCurrency_moneyDigit':'2','_status':'Insert','PayBillb':[{'quickType':'254307','oriSum':'1','natSum':'1','_status':'Insert'}]}]}";
        baseApi.doPostJson(url,reqParams);
    }
}
